import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	name: [{ required: true, message: "报警行为名称为必填项", trigger: "blur" }],
	behaveCode: [{ required: true, message: "报警行为为必填项", trigger: "blur" }],
	isTicket: [{ required: true, message: "是否生成工单为必填项", trigger: "blur" }],
	interval: [{ required: true, message: "时间间隔为必填项", trigger: "blur" }],
});
